package org.jackysoft.workflow;

import java.util.Set;

import org.jackysoft.opensymphony.workflow.entity.StepDescriptor;

import com.google.common.collect.Sets;
import com.google.gson.annotations.Expose;

public class ActionItem implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3609094897465164064L;

	@Expose
	private Long workflowId;

	private String workflowTitle;
	@Expose
	private String workflowName;

	@Expose
	private String owner;
	@Expose
	private String startDate;
	@Expose
	private Integer state;
	@Expose
	private String starter;

	@Expose
	private Integer actionId;
	@Expose
	private String actionName;
	@Expose
	private Integer stepId;
	@Expose
	private Set<StepDescriptor> nextSteps = Sets.newHashSet();

	/**
	 * @return the actionId
	 */
	public Integer getActionId() {
		return actionId;
	}

	/**
	 * @param actionId
	 *            the actionId to set
	 */
	public void setActionId(Integer actionId) {
		this.actionId = actionId;
	}

	/**
	 * @return the actionName
	 */
	public String getActionName() {
		return actionName;
	}

	/**
	 * @param actionName
	 *            the actionName to set
	 */
	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	/**
	 * @return the stepId
	 */
	public Integer getStepId() {
		return stepId;
	}

	/**
	 * @param stepId
	 *            the stepId to set
	 */
	public void setStepId(Integer stepId) {
		this.stepId = stepId;
	}

	/**
	 * @return the nextSteps
	 */
	public Set<StepDescriptor> getNextSteps() {
		return nextSteps;
	}

	/**
	 * @param nextSteps
	 *            the nextSteps to set
	 */
	public void setNextSteps(Set<StepDescriptor> nextSteps) {
		this.nextSteps = nextSteps;
	}

	public Long getWorkflowId() {
		return workflowId;
	}

	public void setWorkflowId(Long workflowId) {
		this.workflowId = workflowId;
	}

	public String getWorkflowTitle() {
		return workflowTitle;
	}

	public void setWorkflowTitle(String workflowTitle) {
		this.workflowTitle = workflowTitle;
	}

	public String getWorkflowName() {
		return workflowName;
	}

	public void setWorkflowName(String workflowName) {
		this.workflowName = workflowName;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getStarter() {
		return starter;
	}

	public void setStarter(String starter) {
		this.starter = starter;
	}	
}
